#ifndef __LOGIN_H__
#define __LOGIN_H__

#include "../https/https.h"

namespace gdata 
{

class gClient_login
{
private:
    const string clientLoginUrl = 
        "https://www.google.com/accounts/ClientLogin";
    const string clientLoginAuthPrefix = 
        "Authorization: GoogleLogin auth";

    string _authToken;
    string _serviceName;
    string _appName;
    vector<string> _requestHeaders;

public:
    gClient_login(){};
    ~gClient_login(){};
    gClient_login(const string& serviceName, const string appName);

    const string& auth_token() const { return _authToken; }
    
    const string& service_name() const { return _serviceName; }
    void set_service_name(const string& serName) { _serviceName = serName; }

    const string app_name() const { return _appName; }
    void set_app_name(const string& appName) { _appName = appName; }

    const vector<string>& request_headers() const { return _requestHeaders; }
    void set_request_header(const vector<string>& headers)
    {
        _requestHeaders = headers;
    }
public:
    string client_login(const string accountName,
                        const string password,
                        const string accountType = "HOSTED_OR_GOOGLE");


}

}
#endif
